package com.weiyin.examination.module;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * Created by lenovo on 2017/9/20.
 */

public class SelectionTypeModule implements Parcelable {
    private String id;
    private String answer;

    public SelectionTypeModule(){

    }
    protected SelectionTypeModule(Parcel in) {
        id = in.readString();
        answer = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(id);
        dest.writeString(answer);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<SelectionTypeModule> CREATOR = new Creator<SelectionTypeModule>() {
        @Override
        public SelectionTypeModule createFromParcel(Parcel in) {
            return new SelectionTypeModule(in);
        }

        @Override
        public SelectionTypeModule[] newArray(int size) {
            return new SelectionTypeModule[size];
        }
    };

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
}
